<?
	$params[sid] = $sid;
	$params[action] = "sales";
	$url = "$baseURL/$webDIR/?".encode_params($params);

	if($errorMsg) echo "<center>$errorMsg<center>";
	$errorMsg = "";
?>
<TABLE border=0 class='bTable' cellspacing='0'>
        <TR>
                <Td colspan='5'>Payment History</Td>
        </TR>
        <tr>
                <th>Period</th><th>Credits</th><th>Issued payment date</th>
        </tr>
        <?
                $l1 =  list_payment_history($id,'period',"");
                $l2 = list_payment_history($id,'unpayed_period',"");
                if(!$l1 && !$l2){
                        echo "<tr><td colspan='5' align='center'>none</td></tr>";
                }
                else echo $l1.$l2;
        ?>
</TABLE>

